Skip to main content

wafCreate

Description

Purchase resource package.

Request Method

POST

Request Path

/customer/waf/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
periodBODYintegerYesNo sample value for this parameter.purchase duration
costBODYnumberYesNo sample value for this parameter.order amount
regionIdBODYstringYesNo sample value for this parameter.region id
billingMethodBODYstringYesNo sample value for this parameter.billing method
voucherInstanceIdBODYstringNoNo sample value for this parameter.voucher of the order
pricingCycleBODYstringYesNo sample value for this parameter.billing cycle
couponInstanceIdBODYstringNoNo sample value for this parameter.coupon of the order
autoRenewalFlagBODYbooleanYesNo sample value for this parameter.auto renew
capacityBODYintegerYesNo sample value for this parameter.subscription resource package size

Return data

NameTypeSample valueDescription
resultobject`{"instanceId":"waf-2022072618493400001","orderId":2.02207261849340006E+18}`No description for this parameter.
resultCodestring0result code
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"instanceId":"waf-2022072618493400001",
"orderId":2.02207261849340006E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}